//
//  ViewController.m
//  UI Demo
//
//  Created by Rainy Zou on 15/11/26.
//  Copyright © 2015年 Rainy Zou. All rights reserved.
//

#import "ViewController.h"
#import "CustomBar.h"

@interface ViewController ()<CustomBarClick>

@end

@implementation ViewController

-(void)btnClick:(CustomBar *)bar from:(NSInteger)from to:(NSInteger)to
{
    self.selectedIndex = to;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    NSLog(@"%f",self.tabBar.bounds.size.width);
    CustomBar *mTabbar = [[CustomBar alloc] initWithFrame:self.tabBar.bounds];
   // self.tabBar.hidden = YES;

    [self.tabBar addSubview:mTabbar];
    mTabbar.delegete = self;
    NSLog(@"Height of the Bar: %lf",mTabbar.frame.size.height);
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
